/**
 * 
 */
package components;

import java.util.HashMap;

import components.IOBuffer.IOBuffer;


/***
 * This is a device list, pare the device id with corresponding input buffer or
 * output buffer
 * 
 * @author Chz
 * 
 */
public class DevLst {

	public HashMap<Integer, IOBuffer> list = new HashMap<Integer, IOBuffer>();

	private static DevLst self;

	private DevLst() {
		// devid 0: console keyboard
		list.put(0, gui.MyInput.keyboardInputBuffer);
		// devid 1: console printer
		list.put(1, gui.MyOutput.ConsoleOutputBuffer);
	}

	public static DevLst getInstance() {
		if (self == null)
			self = new DevLst();

		return self;
	}
}
